from django import template

register = template.Library()

@register.tag(name="template")
def template(parser, token):
    nodelist = parser.parse(('endtemplate',))
    parser.delete_first_token()
    return TemplateNode(nodelist)

class TemplateNode(template.Node):
    def __init__(self, nodelist):
	self.nodelist = nodelist
    def render(self, context):
        output = self.nodelist.render(context)
        return output.upper()
